<?php
include("dao/DatabaseDAO.php");
include("Security.php");

Security::checkAuthenticated();

$databaseDAO = new DatabaseDAO();
$tableNames = $databaseDAO->getDatabasesTables($_GET["DatabaseId"]);
echo json_encode($tableNames);
?>